package com.java.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 产品信息
 * @author Administrator
 *
 */
@Entity
@org.hibernate.annotations.Entity(
		selectBeforeUpdate = true, 
		dynamicInsert = true, 
		dynamicUpdate = true
)
@Table(name="product")
public class Product implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6084359905472098516L;

	@Id
	@GeneratedValue
	private Long id;
	
	/**
	 * 产品名称
	 */
	@Column(length=100)
	private String name;
	
	/**
	 * 产品货号，唯一值
	 */
	@Column(length=30)
	private String productNo;
	
	/**
	 * 是否需要商检
	 */
	@Column
	private Boolean inspection;
	
	/**
	 * 退税率
	 */
	@Column(length=30)
	private String taxTate;
	
	/**
	 * 海关编码
	 */
	@Column(length=30)
	private String customsCode;
	
	/**
	 * 常规材质
	 */
	@Column(length=200)
	private String material;
		
	/**
	 * 申报要素
	 */
	@Column(length=200)
	private String declarationElements;
	
	/**
	 * 创建日期
	 */
	@Temporal(TemporalType.TIMESTAMP)	
	private Date createdDate;
	
	/**
	 * 描述
	 */
	@Column(length=200)
	private String detail;
	
	/**
	 * 备注
	 */
	@Column(length=200)
	private String remark;

	/**
	 * 指导价格
	 */
	
	@Column(length=20)
	private String guideNum1;
	
	@Column(length=20)
	private String guidePrice1;
	
	@Column(length=20)
	private String guideNum2;
	
	@Column(length=20)
	private String guidePrice2;
	
	@Column(length=20)
	private String guideNum3;
	
	@Column(length=20)
	private String guidePrice3;
	
	@Column(length=20)
	private String guideNum4;
	
	@Column(length=20)
	private String guidePrice4;
	
	@Column(length=20)
	private String guideNum5;
	
	@Column(length=20)
	private String guidePrice5;
	
	/**
	 * 产品图片路径 
	 */
	@Column(length=200)
	private String imageUri;
	
	public String getImageUri() {
		return imageUri;
	}

	public void setImageUri(String imageUri) {
		this.imageUri = imageUri;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProductNo() {
		return productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

	public Boolean getInspection() {
		return inspection;
	}

	public void setInspection(Boolean inspection) {
		this.inspection = inspection;
	}

	public String getTaxTate() {
		return taxTate;
	}

	public void setTaxTate(String taxTate) {
		this.taxTate = taxTate;
	}

	public String getCustomsCode() {
		return customsCode;
	}

	public void setCustomsCode(String customsCode) {
		this.customsCode = customsCode;
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public String getDeclarationElements() {
		return declarationElements;
	}

	public void setDeclarationElements(String declarationElements) {
		this.declarationElements = declarationElements;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getGuideNum1() {
		return guideNum1;
	}

	public void setGuideNum1(String guideNum1) {
		this.guideNum1 = guideNum1;
	}

	public String getGuidePrice1() {
		return guidePrice1;
	}

	public void setGuidePrice1(String guidePrice1) {
		this.guidePrice1 = guidePrice1;
	}

	public String getGuideNum2() {
		return guideNum2;
	}

	public void setGuideNum2(String guideNum2) {
		this.guideNum2 = guideNum2;
	}

	public String getGuidePrice2() {
		return guidePrice2;
	}

	public void setGuidePrice2(String guidePrice2) {
		this.guidePrice2 = guidePrice2;
	}

	public String getGuideNum3() {
		return guideNum3;
	}

	public void setGuideNum3(String guideNum3) {
		this.guideNum3 = guideNum3;
	}

	public String getGuidePrice3() {
		return guidePrice3;
	}

	public void setGuidePrice3(String guidePrice3) {
		this.guidePrice3 = guidePrice3;
	}

	public String getGuideNum4() {
		return guideNum4;
	}

	public void setGuideNum4(String guideNum4) {
		this.guideNum4 = guideNum4;
	}

	public String getGuidePrice4() {
		return guidePrice4;
	}

	public void setGuidePrice4(String guidePrice4) {
		this.guidePrice4 = guidePrice4;
	}

	public String getGuideNum5() {
		return guideNum5;
	}

	public void setGuideNum5(String guideNum5) {
		this.guideNum5 = guideNum5;
	}

	public String getGuidePrice5() {
		return guidePrice5;
	}

	public void setGuidePrice5(String guidePrice5) {
		this.guidePrice5 = guidePrice5;
	}

}
